﻿using System;

namespace _74_动态调整数组的大小_数组
{
    class Program
    {
        static void Main(string[] args)
        {
            double[] arr = { 0.001d, 0.000025d, 0.3135d };
            Console.WriteLine($"原数组大小为{arr.Length},元素为{string.Join(",", arr)}");
            Array.Resize(ref arr, 5);
            Console.WriteLine($"新数组大小为{arr.Length}，元素为{string.Join(",",arr)}");
            Console.Read();
        }
    }
}
